package lumis.portal.principal.importprincipal;

import java.util.ArrayList;
import java.util.List;

/**
 * Value Object that holds the groups configs extracted.
 * 
 *
 * @version $Revision: 8289 $ $Date: 2007-09-24 17:46:32 -0300 (Mon, 24 Sep 2007) $
 * @since 4.0.8
 */
class Group
{
	private String shortId;
	private String name;
	private String description;
	private String channelId;
	private List<String> members = new ArrayList<String>();

	/**
	 * Constructor with shortId, name, description and channelId
	 * @param shortId
	 * @param name
	 * @param description
	 * @param channelId
	 */
	public Group(String shortId, String name, String description, String channelId)
	{
		super();
		this.shortId = shortId;
		this.name = name;
		this.description = description;
		this.channelId = channelId;

	}

	/**
	 * Return  ChannelId
	 * @return
	 * @since 4.0.8
	 */
	public String getChannelId()
	{
		return channelId;
	}

	/**
	 * Get description
	 * @return
	 * @since 4.0.8
	 */
	public String getDescription()
	{
		return description;
	}

	/**
	 * Get name
	 * @return
	 * @since 4.0.8
	 */
	public String getName()
	{
		return name;
	}

	/**
	 * Get shortId
	 * @return
	 * @since 4.0.8
	 */
	public String getShortId()
	{
		return shortId;
	}

	/**
	 * Add a member to group
	 * @param member the member identifier.
	 * @since 4.0.11
	 */
	public void addMember(String member)
	{

		members.add(member);
	}

	/**
	 * Return a list with the member identifiers of this group
	 * @return the member identifiers of this group.
	 * @since 4.0.11
	 */
	public List<String> getMembers()
	{
		return this.members;
	}
}
